//package com.waste.game.dao;
//
//import com.waste.game.entity.UserBean;
//import org.apache.ibatis.annotations.*;
//
//import java.util.List;
//
//@Mapper
//public interface UserMapper {
//
//    //登录用户查询
//    @Select("SELECT * FROM game_user WHERE user_name = #{userName} AND user_password = #{userPassword}")
//    UserBean getInfo(@Param("userName") String userName,@Param("userPassword") String userPassword);
//
//    //用户列表查询
//    @Select("SELECT * FROM game_user")
//    List<UserBean> getUserList();
//
//    //添加一个用户
//    @Insert("insert into game_user(user_name,user_password,user_email)values(#{userName},#{userPassword}" +
//            "#{userEmail})")
//    void addUser(UserBean userBean);
//    //修改一个用户
//    @Update("update game_user set user_name = #{userName},user_password = #{userPassword},user_email = #{userEmail}" +
//            "where user_id = #{userId}")
//    void upDataUser(UserBean userBean);
//    //查询一个用户
//    @Select("select * from game_user where user_id = #{id}")
//    UserBean findUser(int id);
//    //删除一个用户
//    @Delete("delete from game_user where user_id = #{id}")
//    void deleteUser(int id);
//    //查询一个用户
//    @Select("select * from game_user where user_name = #{username}")
//    UserBean findUserName(String username);
//    //
//    @Update("update game_user set user_password = #{userPassword} where user_name = #{userName}")
//    void upDataUserName(String userPassword,String userName);
//}
